package indi.cyh.fastservice.base.request;

import indi.cyh.fastservice.annotation.IsJson;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;

/**
 * @Description TODO
 * @Author CYH
 * @Date 2021/7/21 19:56
 **/
@Data
public class BaseQueryPageDataRequest {
    @ApiModelProperty(value = "页码", required = true)
    @Min(message = "页码不能小于1", value = 1)
    int page;
    @ApiModelProperty(value = "每页行数", required = true)
    @Min(message = "每页行数不能小于1", value = 1)
    int row;
    @ApiModelProperty(value = "筛选条件(json数组) 例如 [{         \"columonName\": \"NOTE\",         \"value\": \"工程建设首页\",         \"valueConversionType\": \"0\",         \"columoncompareTypeName\": \"0\"     } ]", required = false)
    @IsJson
    String condition;
    @ApiModelProperty(value = "排序字段(json数组) 例如 [{         \"columonName\": \"IDX\",         \"orderByType\": \"0\"     } ]", required = false)
    @IsJson
    String sort;
}
